Terminal and Processing Method After Access Failure of Terminal

ABSTRACT

A terminal and a processing method after an access failure of the terminal, the method comprising selecting, by a terminal in response to the terminal moving from a first cell to a second cell, a public land mobile network (PLMN), where the terminal is configured with a first registration public land mobile network (RPLMN) in the first cell, establishing, by the terminal, a radio resource control (RRC) connection with the second cell, and storing, by the terminal, the selected PLMN in response to the terminal failing to establish the RRC connection with the second cell.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.14/300,626, filed on Jun. 10, 2014, which is a continuation ofInternational Application No. PCT/CN2012/079594, filed on Aug. 2, 2012.All of the afore-mentioned patent applications are hereby incorporatedby reference in their entireties.

TECHNICAL FIELD

Various embodiments of the present invention relate to wirelesscommunications technologies, and in particular, to a terminal and aprocessing method after an access failure of the terminal.

BACKGROUND

Minimization of drive tests (MDT) is classified into immediate MDT andlogged MDT. In a logged MDT solution, a network side performs MDTconfiguration on a user equipment (UE) when the radio resource control(RRC) is in a connected status, when the UE turns to an idle status, theUE performs MDT measurement and logging, and reports a logged MDTmeasurement result to the network side when the UE turns to theconnected status. The reporting process is usually as follows. First,the UE reports indication information to the network side to indicatethat the UE has logged MDT log data, second, when the network side needsto trigger the UE to report the MDT log data, the network side sends arequest message to the UE, finally, after receiving the request message,the UE reports the logged MDT log data to the network side.

When the UE traverses public land mobile networks (PLMN), before the UEreports the indication information described above or reports the MDTlog data, the UE needs to determine whether a current registration PLMN(RPLMN) is the same as an MDT PLMN, where the MDT PLMN is the RPLMN ofthe UE when the MDT is configured, only when the current registrationPLMN is the same as the MDT PLMN, the above reporting may be performed.

In another scenario, when a radio link failure (RLF) or handover failure(HOF) occurs on the UE, the UE logs an RLF or HOF report, and logs theRPLMN when the RLF or HOF occurs. In this scenario, the reportingprocess of the UE is usually as follows. First, the UE reportsindication information to the network side to indicate that the UE haslogged the RLF or HOF report, second, when the network side needs totrigger the UE to report the RLF or HOF report, the network side sends arequest message to the UE, finally, after receiving the request message,the UE reports the logged RLF or HOF report to the network side. Similarto a logged MDT scenario, before reporting the indication information orsubmitting the report, the UE needs to determine whether the currentRPLMN is the same as the RPLMN when the occurrence of the RLF or HOF islogged, and only when they are the same, the above reporting may beperformed.

As seen from the above description, what is logged by the UE in theprior art is the RPLMN, however, when the UE fails to access a PLMN, alogging error or a reporting error occurs if what is logged is still theRPLMN. For example, assuming that the UE camps on a cell of a PLMN1 inthe beginning and the RPLMN=PLMN1, after the UE moves from the PLMN1 toa PLMN2, the UE attempts to establish an RRC connection with a cell ofthe PLMN2, at this time, if the RRC connection fails to be established,the UE cannot access the PLMN2. At this time, because the UE does notaccess the PLMN2, the RPLMN of the UE cannot be updated and is still thePLMN1, if the UE still logs the RPLMN of the UE when the failure occurs,the PLMN1 is logged as a PLMN with a failed access and a report loggingthe failed access is still reported to the PLMN1, obviously, a loggingerror occurs and the cell of the wrong PLMN is reported to.

SUMMARY

Accordingly, various embodiments of the present invention provide aterminal and a processing method after an access failure of theterminal, so as to solve the problem of a logging error usually causedby logging of an RPLMN in the prior art.

In one aspect, a processing method after an access failure of a terminalis provided, where the method includes establishing, by a terminal, anRRC connection with a first cell, where the first cell is a cellincluding a PLMN selected by the terminal, and logging an access failurePLMN list when the terminal fails to establish the RRC connection withthe first cell, where the access failure PLMN list includes the PLMNselected by the terminal.

In a possible implementation manner, the access failure PLMN listfurther includes a first equivalent public land mobile network (EPLMN)corresponding to the PLMN selected by the terminal, where the firstEPLMN is an EPLMN of the PLMN selected by the terminal before the RRCconnection fails to be established, or a second EPLMN corresponding tothe PLMN selected by the terminal, where the second EPLMN is an EPLMN ofthe PLMN selected by the terminal undergoing an EPLMN update after theterminal successfully accesses the first cell again.

In another possible implementation manner, the access failure PLMN listmerely includes the PLMN selected by the terminal, and the methodfurther includes obtaining, by the terminal, indication information,where the indication information is used to indicate that the PLMNselected by the terminal is logged when an access failure occurs, andthe logging the access failure PLMN list includes logging, according tothe indication information, the PLMN selected by the terminal in theaccess failure PLMN list.

In another possible implementation manner, the method further includesdetermining, by the terminal, whether the logged access failure PLMNlist includes an RPLMN of the terminal when the terminal accesses asecond cell, and if yes, reporting indication information that indicateslogged data is available or a logging report to the second cell, ordetermining, by the terminal, whether the logged access failure PLMNlist includes an identifier of a PPLMN of a second cell, and if yes,reporting indication information that indicates the logged data isavailable or a logging report to the second cell, or determining, by theterminal, whether the logged access failure PLMN list is the same as anyitem of a PLMN list broadcast by a second cell, and if yes, reportingindication information that indicates the logged data is available or alogging report to the second cell.

The second cell is a cell with which the terminal has established an RRCconnection or a cell to which the terminal has been handed over.

In another aspect, a terminal is provided, where the terminal includesan establishment module, configured to establish an RRC connection witha first cell, where the first cell is a cell including a PLMN selectedby the terminal, and a logging module, configured to log an accessfailure PLMN list when the RRC connection with the first cell fails tobe established, where the access failure PLMN list includes the PLMNselected by the terminal.

In a possible implementation manner, the access failure list logged bythe logging module further includes a first EPLMN corresponding to thePLMN selected by the terminal, where the first EPLMN is an EPLMN of thePLMN selected by the terminal before the RRC connection fails to beestablished, or a second EPLMN corresponding to the PLMN selected by theterminal, where the second EPLMN is an EPLMN of the PLMN selected by theterminal undergoing an EPLMN update after the terminal successfullyaccessing the first cell again.

In another possible implementation manner, the access failure PLMN listmerely includes the PLMN selected by the terminal, and the terminalfurther includes an obtaining module, configured to obtain indicationinformation, where the indication information is used to indicate thatthe PLMN selected by the terminal is logged when an access failureoccurs, and the logging module is specifically configured to log,according to the indication information, the PLMN selected by theterminal in the access failure PLMN list.

In another possible implementation manner, the terminal further includesa reporting module, configured to determine whether the logged accessfailure PLMN list includes an RPLMN of the terminal when the terminalaccesses a second cell, and if yes, report indication information thatindicates the logged data is available or a logging report to the secondcell, or determine whether the logged access failure PLMN list includesan identifier of a PPLMN of a second cell, and if yes, report indicationinformation that indicates the logged data is available or a loggingreport to the second cell, or determine whether the logged accessfailure PLMN list is the same as any item of a PLMN list broadcast by asecond cell, and if yes, report indication information that indicatesthe logged data is available or a logging report to the second cell.

The second cell is a cell with which the terminal has established an RRCconnection or a cell to which the terminal has been handed over.

In another aspect, a terminal is provided, where the terminal includes aprocessor, configured to establish an RRC connection with a first cell,and when failing to establish the RRC connection with the first cell,log an access failure PLMN list, where the access failure PLMN listincludes a PLMN selected by the terminal and the first cell is a cellincluding the PLMN selected by the terminal, and a memory, configured tostore the access failure PLMN list.

In a possible implementation manner, the access failure PLMN list loggedby the processor further includes a first EPLMN corresponding to thePLMN selected by the terminal, where the first EPLMN is an EPLMN of thePLMN selected by the terminal before the RRC connection fails to beestablished, or a second EPLMN corresponding to the PLMN selected by theterminal, where the second EPLMN is an EPLMN of the PLMN selected by theterminal undergoing an EPLMN update after the terminal successfullyaccessing the first cell again.

In another possible implementation manner, the access failure PLMN listmerely includes the PLMN selected by the terminal, and the terminalfurther includes a wireless transceiver, configured to receiveindication information, where the indication information is used toindicate that the PLMN selected by the terminal is logged when an accessfailure occurs, and the processor is specifically configured toestablish the RRC connection with the first cell, and when failing toestablish the RRC connection with the first cell, log, according theindication information, the PLMN selected by the terminal in the accessfailure PLMN list.

In another possible implementation manner, the processor is furtherconfigured to determine whether the logged access failure PLMN listincludes an RPLMN of the terminal when the terminal accesses a secondcell, and when a determination result obtained by the processor is yes,the wireless transceiver is further used to report indicationinformation indicates that the logged data is available or a loggingreport to the second cell, or the processor is further configured todetermine whether the logged access failure PLMN list includes anidentifier of a PPLMN of a second cell, when a determination resultobtained by the processor is yes, the wireless transceiver is furtherused to report indication information that indicates the logged data isavailable or a logging report to the second cell, or the processor isfurther configured to determine whether the logged access failure PLMNlist is the same as any item of a PLMN list broadcast by a second cell,when a determination result obtained by the processor is yes, thewireless transceiver is further used to report indication informationthat indicates the logged data is available or a logging report to thesecond cell.

According to the technical solution described above, in this embodiment,after the terminal fails to establish an RRC connection with the cellcontaining the PLMN selected by the terminal, that is, after theterminal fails to access the cell including the selected PLMN, theselected PLMN is logged in the access failure PLMN list, in this manner,it may be achieved that the access failure PLMN list includes theselected PLMN rather than the RPLMN at the time the UE fails to performaccessing, thereby avoiding problems, such as the logging error orreporting error incurred by that the PLMN selected when the accessfailure occurs is inconsistent with the logged RPLMN, achieving theaccuracy of the logging, and therefore reporting to the cell of thecorrect PLMN.

BRIEF DESCRIPTION OF THE DRAWINGS

To illustrate the technical solutions according to various embodimentsof the present invention more clearly, the accompanying drawings fordescribing the embodiments are introduced briefly in the following.Apparently, the accompanying drawings in the following description areonly some embodiments of the present invention, and persons of ordinaryskill in the art may derive other drawings from the accompanyingdrawings without creative efforts.

FIG. 1 is a schematic flow chart of an embodiment of a processing methodafter an access failure of a terminal according to an embodiment of thepresent invention;

FIG. 2 is a schematic diagram of movement of a UE according to anembodiment of the present invention;

FIG. 3 is a schematic flow chart of another embodiment of a processingmethod after an access failure of a terminal according to an embodimentof the present invention;

FIG. 4 is a schematic flow chart of another embodiment of a processingmethod after an access failure of a terminal according to an embodimentof the present invention;

FIG. 5 is a schematic flow chart of another embodiment of a processingmethod after an access failure of a terminal according to an embodimentof the present invention;

FIG. 6 is a schematic flow chart of another embodiment of a processingmethod after an access failure of a terminal according to an embodimentof the present invention;

FIG. 7 is a schematic flow chart of another embodiment of a processingmethod after an access failure of a terminal according to an embodimentof the present invention;

FIG. 8 is a schematic flow chart of another embodiment of a processingmethod after an access failure of a terminal according to an embodimentof the present invention;

FIG. 9 is a schematic structural diagram of an embodiment of a terminalaccording to an embodiment of the present invention; and

FIG. 10 is a schematic structural diagram of another embodiment of aterminal according to an embodiment of the present invention.

DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS

In order to make the objectives, technical solutions, and advantages ofvarious embodiments of the present invention more comprehensible, thetechnical solutions according to embodiments of the present inventionare clearly and completely described in the following with reference tothe accompanying drawings. Apparently, the embodiments in the followingdescription are merely a part rather than all of the embodiments of thepresent invention. All other embodiments obtained by persons of ordinaryskill in the art based on the embodiments of the present inventionwithout creative efforts shall fall within the protection scope of thepresent invention.

FIG. 1 is a schematic flow chart of an embodiment of a processing methodafter an access failure of a terminal according to an embodiment of thepresent invention, which includes the following.

Step 11: A terminal establishes an RRC connection with a first cell,where the first cell is a cell including a PLMN selected by theterminal.

In different systems, the terminal may have different names, forexample, the terminal is a UE, a mobile station (MS), and the like. Inthis embodiment of the present invention, the terminal is, for example,a UE.

After an inter-PLMN movement, the UE may reselect a new PLMN andinitiate an RRC connection with a cell including the PLMN, so as toaccess the cell of the PLMN.

Step 12: When failing to establish the RRC connection with the firstcell, the terminal logs an access failure PLMN list, where the accessfailure PLMN list includes the PLMN selected by the terminal.

In the embodiment of the present invention, the access failure PLMN listmay merely include one PLMN or include at least two PLMNs. When merelyone PLMN is included, the access failure PLMN list may be also called anaccess failure PLMN.

In the prior art, after the RRC connection fails to be established, thelogged access failure PLMN is an RPLMN when the UE fails to establishthe RRC connection, different from the prior art, in the embodiment ofthe present invention, the access failure PLMN is a PLMN selected whenthe UE fails to establish the RRC connection.

In addition, when multiple PLMNs share a network cell, a PLMN may bedesignated as a primary PLMN (PPLMN), and the other PLMNs are secondaryPLMNs. In a shared network, for network optimization, maintenance andoptimization are mainly performed by a PPLMN operator, so that an accessfailure report may be submitted to the network of the PPLMN and the UEmay also log the PPLMN when the RRC connection fails to be established.

Referring to FIG. 2, it is assumed that a UE moves from a shared networkcell of a PLMN1 and a PLMN2 to a shared network cell of a PLMN3 and aPLMN4, the UE selects the PLMN4 and chooses to camp on a cell under thePLMN4, and the PLMN3 is a PPLMN of the shared cell of the PLMN3 and thePLMN4 which the UE chooses to camp on. When the UE camps on the sharednetwork cell of the PLMN1 and the PLMN2, RPLMN=PLMN1.

When the UE fails to establish an RRC connection with the shared networkcell of the PLMN3 and the PLMN4, taking a system shown in FIG. 2 as anexample, a logged access failure PLMN list may include the following.

Referring to FIG. 3, FIG. 3 is a schematic flow chart of anotherembodiment of a processing method after an access failure of a terminalaccording to an embodiment of the present invention. In this embodiment,a logged access failure PLMN list merely includes a PLMN selected by aUE. This embodiment includes the following.

Step 31: The UE selects a PLMN4 and establishes an RRC connection with acell including the PLMN4.

Step 32: When failing to establish the RRC connection, the UE logs thePLMN4 in the access failure PLMN list.

At this time, the access failure PLMN may be also called a PLMN selectedby the UE.

Referring to FIG. 4, FIG. 4 is a schematic flow chart of anotherembodiment of a processing method after an access failure of a terminalaccording to an embodiment of the present invention. In this embodiment,a logged access failure PLMN list merely includes a PLMN, and the PLMNis a PPLMN of a cell which the terminal fails to access. This embodimentincludes the following.

Step 41: The UE selects a PLMN4 and establishes an RRC connection with acell including the PLMN4, where the cell is a shared cell of a PLMN3 andthe PLMN4 and the PLMN3 is a PPLMN of the shared cell.

Step 42: When failing to establish the RRC connection, the UE logs thePLMN3 in the access failure PLMN list.

At this time, the access failure PLMN may be also called the PPLMN of anaccess failure cell.

Referring to FIG. 5, FIG. 5 is a schematic flow chart of anotherembodiment of a processing method after an access failure of a terminalaccording to an embodiment of the present invention. In this embodiment,a logged access failure PLMN list includes a PLMN selected by a terminaland a first equivalent public land mobile network (EPLMN) correspondingto the PLMN selected by the terminal, where the first EPLMN is an EPLMNof the PLMN selected by the terminal before the RRC connection fails tobe established. This embodiment includes the following.

Step 51: A UE selects a PLMN4 and establishes an RRC connection with acell including the PLMN4.

In addition, it is assumed that an EPLMN list when the UE camps on ashared network cell of a PLMN1 and a PLMN2 includes the PLMN1, thePLMN2, and the PLMN4.

Step 52: When failing to establish the RRC connection, the UE logs thePLMN4, the PLMN1, and the PLMN2 in the access failure PLMN list.

Referring to FIG. 6, FIG. 6 is a schematic flow chart of anotherembodiment of a processing method after an access failure of a terminalaccording to an embodiment of the present invention. In this embodiment,a logged access failure PLMN list includes a PLMN selected by a terminaland a second EPLMN corresponding to the PLMN selected by the terminal,where the second EPLMN is an EPLMN of the PLMN selected by the terminalundergoing an EPLMN update after the terminal successfully accesses thefirst cell again. This embodiment includes the following.

Step 61: A UE selects a PLMN4 and establishes an RRC connection with acell including the PLMN4.

In addition, it is assumed that an EPLMN list when the UE camps on ashared network cell of a PLMN1 and a PLMN2 includes the PLMN1 and thePLMN2.

Step 62: When failing to establish the RRC connection, the UE logs thePLMN4 in the access failure PLMN list.

Step 63: After the UE again successfully accesses a cell including thePLMN4 and when the EPLMN list is updated into a PLMN3 and the PLMN4, thePLMN3 is also logged in the access failure PLMN list, that is, theaccess failure PLMN list includes the PLMN3 and the PLMN4.

In this embodiment, after the terminal fails to establish an RRCconnection with the cell including the PLMN selected by the terminal,that is, after the terminal fails to access the cell including theselected PLMN, the selected PLMN is logged in the access failure PLMNlist, in this manner, it may be achieved that the access failure PLMNlist includes the selected PLMN rather than the RPLMN at the time the UEfails to perform accessing, thereby avoiding problems, such as thelogging error or reporting error, incurred by that the PLMN selectedwhen the access failure occurs is inconsistent with the logged RPLMN,achieving the accuracy of the logging, and therefore reporting to thecell of the correct PLMN.

Specifically, what is logged can be predefined, specifically, in ascenario in which the access failure PLMN is the selected PLMN or thePPLMN of the access failure cell, in the embodiment of the presentinvention, it may be predefined that the selected PLMN is logged or thePPLMN of the access failure cell is logged, or according to indicationinformation, the access failure PLMN may be logged as the PLMN selectedby the UE or the PPLMN of the access failure cell.

Referring to FIG. 7, FIG. 7 is a schematic flow chart of anotherembodiment of a processing method after an access failure of a terminalaccording to an embodiment of the present invention, which includes thefollowing.

Step 71: A network side sends indication information to a UE, where theindication information is used to indicate that a selected PLMN or aPPLMN including an access failure cell is logged when an access failureoccurs.

Step 72: After failing to establish an RRC connection with a cellincluding the PLMN selected by the UE, the UE logs, according to theindication information, the selected PLMN or the PPLMN of the accessfailure cell as an access failure PLMN.

The indication information may be contained in a broadcast message, andthe indication information may be 1 bit and indicates whether the PLMNselected when the access failure occurs or the PPLMN is logged, forexample, when the indication information=1, the PLMN selected when theaccess failure occurs is logged, and specifically, a PLMN4, for example,is logged, when the indication information=0, the PPLMN is logged, andspecifically, a PLMN3, for example, is logged.

This embodiment is described through an example in which the indicationinformation is sent by the network side to the UE, optionally, theobtaining, by the UE, the indication information may include obtaining,by the UE, the indication information according to a predefined manner,and for example, it is predefined that the selected PLMN or the PPLMN ofthe access failure cell is logged.

In this embodiment, different logs can be flexibly achieved according tothe indication information, thereby improving diversity of theapplication.

After the access failure PLMN list is logged, corresponding reportingmay be performed accordingly.

FIG. 8 is a schematic flow chart of another embodiment of a processingmethod after an access failure of a terminal according to an embodimentof the present invention, which includes the following.

Step 81: A UE logs an access failure PLMN list.

As described in the above embodiments, the access failure PLMN list mayinclude a selected PLMN or a PPLMN of an access failure cell, or aselected PLMN and a first EPLMN corresponding to the selected PLMN,where the first EPLMN is an EPLMN of the selected PLMN before the RRCconnection fails to be established, or a selected PLMN and a secondEPLMN corresponding to the selected PLMN, where the second EPLMN is anEPLMN of the PLMN selected by the terminal undergoing an EPLMN updateafter the terminal successfully accessing the first cell again.

Step 82: When a logged access failure PLMN list matches a second cell,the UE sends indication information that indicates logged data isavailable or a logging report to the second cell, where the second cellis a cell that has established an RRC connection with the terminal or acell to which the terminal has been handed over.

The second cell may be the same as or different from the first cell.

For example, in a logged MDT scenario, the above determination onmatching is performed first, before the UE sends the indicationinformation that indicates MDT log data is available or before the UEsends the logged MDT log data to the network side after receiving arequest message of the network side, only when it is determined to bematching, the above indication information that indicates the MDT logdata is available or the logged MDT log data is sent.

For another example, in an RLF or HOF scenario, the above determinationon matching is performed first, before the UE sends indicationinformation that indicates an RLF or HOF logging report is available, orbefore the UE sends the RLF or HOF logging report to the network sideafter receiving a request message of the network side, when it isdetermined to be matching, the above indication information thatindicates the RLF or HOF logging report is available or the RLF or HOFlogging report is sent.

No matter in the logged MDT scenario or the RLF or HOF scenario, thefollowing manners may be used to perform the determination on matching.

It is determined whether the logged access failure PLMN list includes anRPLMN of the UE when the UE accesses the second cell, if yes, it isdetermined to be matching, otherwise, it is determined to benon-matching.

For example, if the logged access failure PLMN list includes the PLMN4,when the RPLMN of the UE is the PLMN4 when the UE accesses the secondcell, it is determined to be matching.

Or, it is determined whether the logged access failure PLMN listincludes a PPLMN of the second cell, if yes, it is determined to bematching, otherwise, it is determined to be non-matching.

For example, if the logged access failure PLMN list includes a PLMN3,when a PPLMN of the second cell is the PLMN3, it is determined to bematching.

Or, it is determined whether the logged access failure PLMN list is thesame as any item of a PLMN list broadcast by the second cell, if yes, itis determined to be matching, otherwise, it is determined to benon-matching.

For example, if the logged access failure PLMN list includes the PLMN4,when the PLMN list broadcast by the currently accessed second cellincludes the PLMN3 and the PLMN4, it is determined to be matching.

During the determination process described above, when the UE camps on acell, the UE may receive the PLMN list broadcast by the cell, and afirst PLMN in the PLMN list is usually the PPLMN, therefore, the UE maycompare the logged access failure PLMN list and the broadcast PLMN listto perform the determination described above. Or, after successfullyaccessing a cell, the UE may obtain a PLMN where the cell is located,and the UE may update the RPLMN with the RPLMN of the currently accessedcell and then compares the RPLMN of the currently accessed cell with thelogged access failure PLMN list to perform the correspondingdetermination described above.

The UE according to this embodiment performs the above determinationbefore the reporting, so as to ensure that the log is sent to a cell ofa correct PLMN.

FIG. 9 is a schematic structural diagram of an embodiment of a terminalaccording to an embodiment of the present invention. The terminal may bea device executing the method described above and the terminal includesan establishment module 91 and a logging module 92, the establishmentmodule 91 is configured to establish an RRC connection with a firstcell, where the first cell is a cell including a PLMN selected by theterminal, the logging module 92 is configured to log an access failurePLMN list when the RRC connection with the first cell fails to beestablished, where the access failure PLMN list includes the PLMNselected by the terminal.

Optionally, the access failure list logged by the logging module furtherincludes a first EPLMN corresponding to the PLMN selected by theterminal, where the first EPLMN is an EPLMN of the PLMN selected by theterminal before the RRC connection fails to be established, or a secondEPLMN corresponding to the PLMN selected by the terminal, where thesecond EPLMN is an EPLMN of the PLMN selected by the terminal undergoingan EPLMN update after the terminal successfully accessing the first cellagain.

Optionally, the access failure PLMN list merely includes the PLMNselected by the terminal, and the terminal further includes an obtainingmodule, configured to obtain indication information, where theindication information is used to indicate that the PLMN selected by theterminal is logged when an access failure occurs, and the logging moduleis specifically configured to log, according to the indicationinformation, the PLMN selected by the terminal in the access failurePLMN list.

Optionally, the terminal further includes a reporting module, configuredto determine whether the logged access failure PLMN list includes anRPLMN of the terminal when the terminal accesses a second cell, and ifyes, report indication information that indicates the logged data isavailable or a logging report to the second cell, or determine whetherthe logged access failure PLMN list includes an identifier of a PPLMN ofthe second cell, and if yes, report indication information thatindicates the logged data is available or a logging report to the secondcell, or determine whether the logged access failure PLMN list is thesame as any item of a PLMN list broadcast by the second cell, and ifyes, report indication information that indicates the logged data isavailable or a logging report to the second cell.

The second cell is a cell with which the terminal has established an RRCconnection or a cell to which the terminal has been handed over.

In this embodiment, after the terminal fails to establish an RRCconnection with the cell including the PLMN selected by the terminal,that is, after the terminal fails to access the cell including theselected PLMN, the selected PLMN is logged in the access failure PLMNlist, in this manner, it may be achieved that the access failure PLMNlist includes the selected PLMN rather than the RPLMN at the time the UEfails to perform accessing, thereby avoiding problems, such as thelogging error or reporting error, incurred by that the PLMN selectedwhen the access failure occurs is inconsistent with the logged RPLMN,achieving the accuracy of the logging, and therefore reporting to thecell of the correct PLMN.

FIG. 10 is a schematic structural diagram of another embodiment of aterminal according to an embodiment of the present invention. Theterminal 100 includes a processor 101 and a memory 102, the processor101 is configured to establish an RRC connection with a first cell, andwhen failing to establish the RRC connection with the first cell, log anaccess failure PLMN list, where the access failure PLMN list includes aPLMN selected by the terminal and the first cell is a cell including thePLMN selected by the terminal, and the memory 102 is configured to storethe access failure PLMN list.

Optionally, the access failure PLMN list logged by the processor furtherincludes a first EPLMN corresponding to the PLMN selected by theterminal, where the first EPLMN is an EPLMN of the PLMN selected by theterminal before the RRC connection fails to be established, or a secondEPLMN corresponding to the PLMN selected by the terminal, where thesecond EPLMN is an EPLMN of the PLMN selected by the terminal undergoingan EPLMN update after the terminal successfully accessing the first cellagain.

Optionally, the access failure PLMN list merely includes the PLMNselected by the terminal, and the terminal further includes a wirelesstransceiver 103, configured to receive indication information, where theindication information is used to indicate that the PLMN selected by theterminal is logged when an access failure occurs.

The processor is specifically configured to establish the RRC connectionwith the first cell, and when failing to establish the RRC connectionwith the first cell, log, according the indication information, the PLMNselected by the terminal in the access failure PLMN list, where theindication information may be received by the wireless transceiver, orobtained as predefined.

Optionally, the processor is further configured to determine whether thelogged access failure PLMN list includes an RPLMN of the terminal whenthe terminal accesses a second cell, and when a determination resultobtained by the processor is yes, the wireless transceiver is furtherused to report indication information that indicates the logged data isavailable or a logging report to the second cell, or the processor isfurther configured to determine whether the logged access failure PLMNlist includes an identifier of a PPLMN of the second cell, when adetermination result obtained by the processor is yes, the wirelesstransceiver is further used to report the indication information thatindicates the logged data is available or the logging report to thesecond cell, or the processor is further configured to determine whetherthe logged access failure PLMN list is the same as any item of a PLMNlist broadcast by the second cell, when a determination result obtainedby the processor is yes, the wireless transceiver is further used toreport the indication information that indicates the logged data isavailable or the logging report to the second cell.

The wireless transceiver may receive and transmit a radio signal throughone or more antennas 104. The processor may be implemented through alogic integrated circuit.

In this embodiment, after the terminal fails to establish an RRCconnection with the cell including the PLMN selected by the terminal,that is, after the terminal fails to access the cell including theselected PLMN, the selected PLMN is logged in the access failure PLMNlist, in this manner, it may be achieved that the access failure PLMNlist includes the selected PLMN rather than the RPLMN at the time the UEfails to perform accessing, thereby avoiding problems, such as thelogging error or reporting error, incurred by that the PLMN selectedwhen the access failure occurs is inconsistent with the logged RPLMN,achieving the accuracy of the logging, and therefore reporting to thecell of the correct PLMN.

Persons of ordinary skill in the art should understand that all or partof the steps of the method according to each embodiment of the presentinvention may be implemented by a program instructing relevant hardware.The program may be stored in a computer readable storage medium. Whenthe program runs, the program executes the steps of the method accordingto each embodiment above. The storage medium may be any medium capableof storing program codes, such as a ROM, a RAM, a magnetic disk, or anoptical disk.

Finally, it should be noted that the above embodiments are merelyprovided for describing the technical solutions of the presentinvention, but not intended to limit the present invention. It should beunderstood by persons of ordinary skill in the art that although thepresent invention has been described in detail with reference to theembodiments, modifications may be made to the technical solutionsdescribed in the embodiments, or equivalent replacements may be made topart or all of technical features in the technical solutions, as long assuch modifications or replacements do not cause the essence ofcorresponding technical solutions to depart from the scope of thetechnical solutions of the present invention.

What is claimed is:
 1. A method comprising: selecting, by a terminal inresponse to the terminal moving from a first cell to a second cell, apublic land mobile network (PLMN), wherein the terminal is configuredwith a first registration public land mobile network (RPLMN) in thefirst cell; establishing, by the terminal, a radio resource control(RRC) connection with the second cell; and storing, by the terminal, theselected PLMN in response to the terminal failing to establish the RRCconnection with the second cell.
 2. The method according to claim 1,further comprising: accessing, by the terminal, a third cell, whereinthe terminal is configured with a second RPLMN in the third cell;determining, by the terminal, whether the selected PLMN is equal to thesecond RPLMN; and sending, by the terminal, indication information or alogged report to the third cell, wherein the indication informationindicates a logged report is available.
 3. The method according to claim2, wherein the terminal sends the indication information to the thirdcell; and wherein the method further comprises: receiving, by theterminal, a request message from the third cell; and sending, by theterminal, the logged report to the third cell according to the requestmessage.
 4. The method according to claim 2, wherein the logged reportcomprises minimization of drive tests (MDT) log data.
 5. The methodaccording to claim 2, wherein the logged report comprises a radio linkfailure (RLF) report or handover failure (HOF) report.
 6. The methodaccording to claim 1, wherein the storing, by the terminal, the selectedPLMN in response to the terminal failing to establish the RRC connectionwith the second cell comprises storing the selected PLMN in an accessfailure PLMN list.
 7. The method according to claim 6, wherein thestoring, by the terminal, the selected PLMN in response to the terminalfailing to establish the RRC connection with the second cell comprisesstoring an equivalent public land mobile network (EPLMN) correspondingto the selected PLMN in the access failure PLMN list, wherein the EPLMNis an EPLMN of the selected PLMN that is selected by the terminal beforethe RRC connection fails to be established.
 8. An apparatus, comprising:a processor, a non-transitory computer-readable storage medium storing aprogram to be executed by the processor, the program includinginstructions to: select, in response to the apparatus moving from afirst cell to a second cell, a public land mobile network (PLMN),wherein the apparatus is configured with a first registration publicland mobile network (RPLMN) in the first cell; establish a radioresource control (RRC) connection with the second cell; and store theselected PLMN in response to the apparatus failing to establish the RRCconnection with the second cell.
 9. The apparatus according to claim 8,wherein the program further comprises instructions to: access a thirdcell, wherein the apparatus is configured with a second RPLMN in thethird cell; determine whether the selected PLMN is equal to the secondRPLMN; and send indication information or a logged report to the thirdcell, wherein the indication information indicates a logged report isavailable.
 10. The apparatus according to claim 9, wherein theindication information is sent to the third cell; and wherein theprogram further includes instructions to: receive a request message fromthe third cell; and send the logged report to the third cell accordingto the request message.
 11. The apparatus according to claim 9, whereinthe logged report comprises minimization of drive tests (MDT) log data.12. The apparatus according to claim 9, wherein the logged reportcomprises a radio link failure (RLF) report or handover failure (HOF)report.
 13. The apparatus according to claim 8, wherein the instructionsto store the selected PLMN in response to the apparatus failing toestablish the RRC connection with the second cell include instructionsto store the selected PLMN in an access failure PLMN list.
 14. Theapparatus according to claim 13, wherein the instructions to storing theselected PLMN in response to the apparatus failing to establish the RRCconnection with the second cell further include instructions to store anequivalent public land mobile network (EPLMN) corresponding to theselected PLMN in the access failure PLMN list, wherein the EPLMN is anEPLMN of the selected PLMN that is selected by the apparatus before theRRC connection fails to be established.
 15. A non-transitory computerreadable storage medium, wherein the non-transitory computer readablestorage medium stores a program, that, when executed by a processor,causes the processor to: select, in response to moving from a first cellto a second cell, a public land mobile network (PLMN), wherein theprocessor has access to a first registration public land mobile network(RPLMN) in the first cell; establish a radio resource control (RRC)connection with the second cell; and store the selected PLMN in responseto failing to establish the RRC connection with the second cell.
 16. Thenon-transitory computer readable storage medium according to claim 15,wherein the program, when executed by the processor, further causes theprocessor further to: access a third cell, wherein the processor hasaccess to a second RPLMN in the third cell; determine whether theselected PLMN is equal to the second RPLMN; and send indicationinformation or a logged report to the third cell, wherein the indicationinformation indicates a logged report is available.
 17. Thenon-transitory computer readable storage medium according to claim 16,wherein the indication information is sent to the third cell; andwherein the program, when executed by the processor, further causes theprocessor to: receive a request message from the third cell; and sendthe logged report to the third cell according to the request message.18. The non-transitory computer readable storage medium according toclaim 16, wherein the logged report comprises minimization of drivetests (MDT) log data.
 19. The non-transitory computer readable storagemedium according to claim 16, wherein the logged report comprises aradio link failure (RLF) report or handover failure (HOF) report. 20.The non-transitory computer readable storage medium according to claim15, wherein the program, when executed by the processor, causing theprocessor to store the selected PLMN in response to failing to establishthe RRC connection with the second cell comprises the program, whenexecuted by the processor, causing the processor to: store the selectedPLMN in an access failure PLMN list; and store an equivalent public landmobile network (EPLMN) corresponding to the selected PLMN in the accessfailure PLMN list, wherein the EPLMN is an EPLMN of the selected PLMNthat is selected by before the RRC connection fails to be established.